package fly.util;

import fly.help.PrintSupport;

import java.util.Date;

public class DateDemo {


    public static void main(String[] args) {
        PrintSupport.sout("1");

        Date dt = new Date();
        Date anotherDt = new Date(1994, 8, 3600000);
        Integer[] intArr = {
                dt.compareTo(anotherDt),
                dt.getDate(),// 号
                dt.getDay(), // 周几
                dt.getHours(), // 几时
                 dt.getMinutes(),
                dt.getMonth(), // 几月
                dt.getSeconds(),
                dt.getYear()
        };

        for (Integer itg: intArr) {
            System.out.print( itg.toString() +";\t");
        }
        PrintSupport.sout("2");
        System.out.println( dt.getTime());

    }
}
